/**
 * Created by MADinow on 26.10.2014.
 */

/* -----------------------------------------------------------
 POPUP EVENTS MODULE
 ----------------------------------------------------------- */

define(['settings/variables', 'ui/madGenerator', 'ui/mainContent-ui', 'ui/pageDimmer-ui',
        'ui/popup-ui', 'jquery', 'jquery_ui'],
    function (Variables, Genny, MainContent, PageDimmer, Popup) {


        /**
         * register page dimmer events
         * @param id
         * @private
         */
        function _registerPageDimmerEvents(){
            PageDimmer.getPageDimmer().bind({
                click: function(){
                    Popup.closePopup();
                }
            });
        }

        /*
         *  public interface
         */
        return {
            registerPageDimmerEvents: _registerPageDimmerEvents
        }

    }
);
